<?php
class Fapiao_invoice_model extends BZ_Model
{
    protected $table = 'fapiao_invoice';
    
    public function getFapiaoByOrderId($order_id)
    {
        $this->db->where('order_id', $order_id);
        return $this->db->get($this->table);
    }
}